package com.youoor.common.base;

import java.util.List;


public abstract class BaseServiceImpl<E,EQ,PK> implements BaseService<E,EQ,PK> {
	public abstract BaseDao<E,EQ,PK> getBaseDao();

	@Override
	public int save(E record) {
		return getBaseDao().save(record);
	}

	@Override
	public int saveSelective(E record) {
		return getBaseDao().saveSelective(record);
	}

	@Override
	public int countByExample(EQ example) {
		return getBaseDao().countByExample(example);
	}

	@Override
	public int deleteByExample(EQ example) {
		return getBaseDao().deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(PK id) {
		return getBaseDao().deleteByPrimaryKey(id);
	}

	@Override
	public List<E> selectByExample(EQ example,Integer num) {
		return getBaseDao().selectByExample(example,num);
	}

	@Override
	public E selectByPrimaryKey(PK id) {
		return getBaseDao().selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(E record, EQ example) {
		return getBaseDao().updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(E record, EQ example) {
		return getBaseDao().updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(E record) {
		return getBaseDao().updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(E record) {
		return getBaseDao().updateByPrimaryKey(record);
	}

}
